<script>
function submitForm()
{
  document.testForm.action="http://google.com";
  //document.testForm.method="post";
  document.testForm.submit();
}
</script>


<form name="testForm">
<input type="text" name="email">
<p>
  <a href="#" onClick="submitForm()">CLick Here to submit that form</a>
</p>
</form>